package com.atguigu.paymentdemo.service;

import com.atguigu.paymentdemo.entity.OrderInfo;

import java.io.IOException;
import java.security.GeneralSecurityException;
import java.util.Map;

/**
 *
 */

public interface WxPayService {
    Map<String, String> nativePay(Long productId, Long userId) throws Exception;

    void processOrder(Map<String,String> resource) throws GeneralSecurityException;


    void cancelOrder(String orderNo) throws IOException;

    void checkOrderStatus(OrderInfo orderInfo) throws IOException;

    void orderRefund(String orderNo, String reason) throws IOException;

    void processRefundOrder(Map<String,String> resource) throws GeneralSecurityException;
}
